package cn.com.dcsgo;

import cn.com.dcsgo.model.search.SkuEs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.List;

/**
 * cn.com.dcsgo.SearchFeignClient
 *
 * @author Dcsgo
 * @since 2025/4/25 10:05
 */
@FeignClient("service-search")
public interface SearchFeignClient {
    @GetMapping("api/search/sku/hot/count/{number}")
    List<SkuEs> getEsHotSkuInfoByCount(@PathVariable Integer number);

    @PutMapping("api/search/sku/{skuId}/hot")
    boolean plusSkuHotScore(@PathVariable Long skuId);
}
